<template>
	<view>
		<text>\n</text>
		<view style="margin-left: 50rpx;">个人信息</view>
		<text>\n</text>
		<view>
			<image :src="user.image" style="border-radius: 50%;margin-left: 50rpx;width: 50px;height: 50px;"></image>
		</view>
		<text>
			.&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;姓名:{{user.name}}\n
			&nbsp;&nbsp;&nbsp;性别:{{user.gender}}\n
			&nbsp;&nbsp;&nbsp;电话:{{user.phone}}\n
			&nbsp;&nbsp;&nbsp;学校:{{user.schoolName}}\n
			.
		</text>
		<button @click="queryTicket('0')">我的购票</button>
		<button @click="queryTicket('1')">我的缴费</button>
		<button @click="infoChangePage()">信息修改</button>
		<button @click="cancellation()">注销</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user:{}
			}
		},
		onShow() {
			var user=uni.getStorageSync("user");
			this.user=user;
		}
		,
		methods: {
			cancellation(){
			  uni.setStorageSync("user","");
			  uni.navigateTo({url:'../login/login'});
		    },
			queryTicket(status){
				uni.setStorageSync("status",status);
				uni.navigateTo({url:'../ticket/ticket'});
			},
			infoChangePage(){
				uni.navigateTo({url:'../userInfo/userInfo'});
			}
		}	
	}
</script>

<style>

</style>
